from werkzeug.local import LocalStack

ls = LocalStack()
ls.push(1)
print(ls.top)
print(ls.top)
print(ls.pop())
print(ls.top)
ls.push(1)
ls.push(2)
print(ls.top)
print(ls.top)
print(ls.pop())
print(ls.top)
